projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c19e6c
)
(compute_motion): Ignore the display table entry for a
author
Richard M. Stallman
<rms@gnu.org>
Mon, 15 Sep 1997 19:51:28 +0000
(19:51 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 15 Sep 1997 19:51:28 +0000
(19:51 +0000)
base leading code when dealing with multibyte characters.
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index a6fa7a9242001d0a797cdaf519365d44d78fefe8..3a8cce764df3e27ef89902e8072e950b7807b8b1 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-1256,7
+1256,8
@@
compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
}
}
- if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
+ if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c))
+ && ! (multibyte && BASE_LEADING_CODE_P (c)))
hpos += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size;
else if (c >= 040 && c < 0177)
hpos++;